package cn.tt.tuantuanerp.tuantuanerp.comment.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 用户登录类
 *
 * @author gudiwen
 * @version 0.0.1
 */
@Data
public class UserLoginDTO implements Serializable {
    /**
     *登录名,邮箱,电话
     */
    @ApiModelProperty(value = "登录账号",example = "zssss",required = true)
    @NotNull(message = "必须提交登录账号")
    @NotEmpty(message = "登录账号不能为空")
    @NotBlank(message = "登录账号不能为空")
    private String authentication;
    /**
     *密码
     */
    @ApiModelProperty(value = "密码",example = "123456")
    private String password;

    @ApiModelProperty(value = "验证码",example = "459879")
    private String validCode;
}
